package com.ketangpai.admin.service.impl;

import com.ketangpai.admin.dao.ClassDetailMapper;
import com.ketangpai.admin.entity.Course;
import com.ketangpai.admin.entity.HomeworkGrade;
import com.ketangpai.admin.entity.TestGrade;
import com.ketangpai.admin.service.ClassDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ClassDetailServiceImpl implements ClassDetailService {
    @Resource
    private ClassDetailMapper classDetailMapper;

    @Override
    public HomeworkGrade[] getHomeworkGrade(Integer courseId, Integer userId) {
        return classDetailMapper.getHomeworkGrade(courseId, userId);
    }

    @Override
    public Course getCourseInformation(Integer courseId) {
        return classDetailMapper.getCourseInformation(courseId);
    }

    @Override
    public TestGrade[] getTestGrade(Integer courseId, Integer userId) {
        return classDetailMapper.getTestGrade(courseId, userId);
    }
}
